'''
作业
'''
# # 1.
# s = 'abcd1234'
# print(s[1::2])
# # 2.
# username = input('用户名：')
# if 6 <= len(username) <= 10:
#     print('用户名合法')
# else:
#     print('用户名不合法')
# # 3.
# username = input('用户名：')
# for i in username:
#     if not ('1' <= i <= '9' or 'A' <= i <= 'Z' or 'a' <= i <= 'z'):
#         print('不合法')
#         break
# else:
#     print('合法')
# # 4.
# username = input('用户名：')
# if 'A' <= username[0] <= 'Z':
#     if username.isalpha() or username.isdigit():
#         print('不合法')
#     else:
#         for i in username:
#             if not ('1' <= i <= '9' or 'A' <= i <= 'Z' or 'a' <= i <= 'z'):
#                 print('不合法')
#                 break
#         else:
#             print('ok')
# else:
#     print('不合法，第一个字母必须是大写字母')
# # 5.
# s = input('str:')
# new_s = ''
# for i in s:
#     if '0' <= i <= '9':
#         new_s += i
# else:
#     print('没有数字字符')
# print(new_s)
# # 6.
# s = 'a2h2klm12+'
# s1 = ''
# for i in s:
#     if 'a' <= i <= 'z':
#         s1 += i.upper()
#     else:
#         s1 += i
# print(s1)
#
# s = 'a2h2klm12+'
# s1 = ''
# for i in s:
#     if 'a' <= i <= 'z':
#         x = chr(ord(i) - 97 + 65)  # 用小字母编码值与a编码值的差，加上A编码值
#         s1 += x
#     else:
#         s1 += i
# print(s1)
# # 7.
# num = int(input('请输入小于1000的数字：'))
# clazz_num = 'py'
# stu_num = 1901000
# if 0 < num < 1000:
#     stu_num += num
#     clazz_num += str(stu_num)
# print(clazz_num)
# # 8.
# s = '==='
# count = 0
# for i in s:
#     if '0' <= i <= '9' or 'a' <= i.lower() <= 'z':
#         continue
#     else:
#         count += 1
# print(count)
# # 9.
# s = 'abc123'
# s = s.replace(s[0], '+')
# s = s.replace(s[-1], '+')
# print(s)
# # 10
# s = 'abc123'
# if len(s) & 1 == 1:
#     s = s[len(s)//2]
# else:
#     s = s[len(s)//2-1:len(s)//2+1]
# print(s)
# 11.
s1 = 'how y are you? Im fine, Thank you!'
s2 = 'you'
for i in range(len(s1)):
    for j in s2:
        if s1[i] == j:
            if j == s2[-1]:
                i += 1
                print(i - len(s2))
                break


# # 12.
# s1 = 'abc123'
# s2 = 'huak3'
# s3 = set(s1) & set(s2)
# s = ''
# for i in s3:
#     s += str(i)
# print(s)

